package com.yi.servicedriveruser.remote;


import com.yi.internalcommon.dto.ResponseResult;
import com.yi.internalcommon.responese.TerminalResponse;
import com.yi.internalcommon.responese.TrackResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("service-map")
public interface ServiceMapClient {
    /**
     * 创建终端
     * @param name
     * @return
     */
    @PostMapping("/terminal/add")
    ResponseResult<TerminalResponse> addTerminal(@RequestParam("name") String name,@RequestParam("desc") String desc);
    /**
     * 创建軌跡
     * @param tid
     * @return
     */
    @PostMapping("/track/add")
    ResponseResult<TrackResponse> addTrack(@RequestParam("tid") String tid);
}
